set -e
set -x

project_root_dir="/home/yishan/workspace/coin"
deploy_dir=$(dirname $(readlink -f "$0"))

rsync -tP ${project_root_dir}/bazel-bin/cc/appcoin2/strategy/mm_pilot/simple_mm fap:/home/ec2-user/yishan/deploy/simple_mm/
rsync -tP ${project_root_dir}/cc/coin2/exchange/binance_base/feed_v1/schema.json fap:/home/ec2-user/yishan/deploy/simple_mm/cc/coin2/exchange/binance_base/feed_v1/schema.json
rsync -atP ${deploy_dir}/config/ fap:/home/ec2-user/yishan/deploy/simple_mm/config/
rsync -atP ${project_root_dir}/data/ fap:/home/ec2-user/yishan/deploy/simple_mm/data/

# create path but has no permission, why
# /home/ec2-user/data/strat_slim_proto_log/feed-middleware-test.ap-northeast-1.aws/20230831
# /home/ec2-user/data/strat_proto_log/feed-middleware-test.ap-northeast-1.aws/20230831
